package cn.com.guage.transtation.dao;

import cn.com.guage.transtation.entity.Stock;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface StockRepository extends JpaRepository<Stock, Long> {
    Optional<Stock> findByProductId(Integer productId);
}    